]> dgit.raspbian.org Git - gnome-shell.git/commit
workspaceThumnails: Add :should-show property
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 16 Feb 2021 19:40:43 +0000 (20:40 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 19 Feb 2021 00:08:48 +0000 (01:08 +0100)
commitf2391796825b7966501e158efaf3b80a00a076b0
treeb7d1b47c29ab82787d34fe81ee061458417fe347
parentbf8e76217819a971b719ae331d125b372ce4d75f
workspaceThumnails: Add :should-show property

We currently have two components that show or hide the minimap:

 - the thumbnails hide themselves in case of a single static workspace
 - overview controls show the minimap when no search is active

That obviously doesn't work correctly.

To fix this, change thumbnails to set a new :should-show property instead
of the visibility, and let the overview controls take it into account
when changing the visibility.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3739

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1696>
js/ui/overviewControls.js
js/ui/workspaceThumbnail.js